﻿@model KKU.RBSFPP.Shared.DAC.PrivilegeLevel

@{
    ViewBag.Title = "Edit";
}

@Html.Partial("_AccountMenu")

<p>
    <a class="btn btn-success" ><span class="glyphicon glyphicon-edit"></span> แก้ไขสิทธิ์</a>
</p>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    
    <fieldset>
        <legend></legend>

        @Html.HiddenFor(model => model.Id)

       <h4>ชื่อ</h4>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Name, new {@class="form-control" ,placeholder="ชื่อสิทธิ์"})
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <h4>รายละเอียด</h4>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Description, new {@class="form-control" ,placeholder="รายละเอียด"})
            @Html.ValidationMessageFor(model => model.Description)
        </div>

         <legend></legend>

         <p>
            <a href=@Url.Action("Index", "Privilege") class="btn btn-danger"><span class="glyphicon glyphicon-remove-circle"></span> ยกเลิก</a>
            <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-ok-circle"></span> ตกลง</button>
        </p>

       @Html.HiddenFor( model => model.CreateOn )

       
    </fieldset>
}


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
